package com.th.supcom.pds.auditprescription.client.common;

/**
 * @author yzhang 判断改处方是否需要审核类
 * 
 */
public final class IsAuditPrescription
{
    /**
     * @param qualifiedIndicator 审核标志位
     * @return true:已经审核过的处方 false:没有被审核过的处方
     */
    public static boolean isAudited (final Integer qualifiedIndicator)
    {
        return qualifiedIndicator != null;
    }

    /**
     * @param prescType 处方类别
     * @return flase：普通处方 true：毒麻处方
     */
    public static boolean isDangerDrug (final Integer prescType)
    {
        return prescType != null;
    }

    public static boolean isNeedAudit (final Integer qualifiedIndicator, final Integer prescType)
    {
        return !IsAuditPrescription.isAudited (qualifiedIndicator) && IsAuditPrescription.isDangerDrug (prescType);
    }

    private IsAuditPrescription ()
    {

    }
}
